<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<div class="col-xs-12">
	<div class="widget-main" style="overflow:auto; height: 435px;">
		<div class="profile-user-info profile-user-info-striped">
			<div class="profile-info-row">
				<div class="profile-info-name">链接编码</div>
				<div class="profile-info-value">
					<span class="editable">${res.id}&nbsp;</span>
				</div>
			</div>
			<div class="profile-info-row">
				<div class="profile-info-name">链接名称</div>
				<div class="profile-info-value">
					<span class="editable">${res.shortName}&nbsp;</span>
				</div>
			</div>
			<div class="profile-info-row">
				<div class="profile-info-name">资源类型</div>
				<div class="profile-info-value">
					<span class="editable">链接&nbsp;</span>
				</div>
			</div>
			<div class="profile-info-row">
				<div class="profile-info-name">链接地址</div>
				<div class="profile-info-value">
					<span class="editable">
						${cm:lmitStrPx(res.url,300)}
						&nbsp;</span>
				</div>
			</div>
			<div class="profile-info-row">
				<div class="profile-info-name">是否外部链接</div>
				<div class="profile-info-value">
					<span class="editable">${cm:yesNoStr(res.outurl)}&nbsp;</span>
				</div>
			</div>
			<c:if test="${res.outurl=='1'}">
			<div class="profile-info-row">
				<div class="profile-info-name">所属系统</div>
				<div class="profile-info-value">
					<span class="editable">${cm:ctname('LinkOwnerType',res.ownerType)}&nbsp;</span>
				</div>
			</div>
			</c:if>
			<c:if test="${res.ownerType=='2'}">
				<div class="profile-info-row">
					<div class="profile-info-name">前缀配置文件参数</div>
					<div class="profile-info-value">
						<span class="editable">${res.ownerUrlPreFix}&nbsp;</span>
					</div>
				</div>
			</c:if>
			<div class="profile-info-row">
				<div class="profile-info-name">仅开发模式 </div>
				<div class="profile-info-value">
					<span class="editable">
						${cm:yesNoStr(res.fordev)}&nbsp;
						</span>
				</div>
			</div>
			<div class="profile-info-row">
				<div class="profile-info-name">按钮名称</div>
				<div class="profile-info-value">
					<span class="editable">${res.btnvalue}&nbsp;</span>
				</div>
			</div>
			<div class="profile-info-row">
				<div class="profile-info-name">链接所属分组 </div>
				<c:forEach var="g" items="${groups}" varStatus="status">
				  <div class="profile-info-value">
					<span class="editable">${status.count}. ${g.shortName}&nbsp;</span>
				  </div> 
				</c:forEach>
			</div>
			<div class="profile-info-row">
				<div class="profile-info-name">最后修改时间</div>
				<div class="profile-info-value">
					<span class="editable">
					<fmt:formatDate value="${res.modified}" pattern="yyyy-MM-dd HH:mm:ss" />
					&nbsp;</span>
				</div>
			</div>
			<div class="profile-info-row">
				<div class="profile-info-name">资源描述</div>
				<div class="profile-info-value">
					<span class="editable">${res.remark}&nbsp;</span>
				</div>
			</div>
		</div>
	</div>
</div>
